#include  <iostream>
using namespace std;

#include <vector>
#include <string>

class test01
{
public:
    test01() {};
    string Find_the_year(int begin_year, int n) 
    { 
        int begin_year_num = (begin_year - 2020) % 12;
        int sum_n = (n + begin_year_num) % 12;     
        if (sum_n < 0) sum_n += 12;
        return _year.substr(sum_n * 3,3); 
    }   
     

private:
    string _year = "鼠牛虎兔龙蛇马羊猴鸡狗猪";
};


class test02{
public:
    test02(){};
    double Sum_num(int n=100)
    {
        double a = 1.0,b = 2.0, c = 0,sum = 0;
        if(n == 1)
            sum = 1;
        else if(n == 2)
            sum = 1.5;
        else{
                sum = a + a/b;
                n -= 2;
                while(n--)
                {
                    c = a + b;
                    a = b;
                    b = c;
                    sum += a/b;
                }
        }
        return sum;
    }
private:

};



class test03{
public:
    test03(){};
    int Sum_the_Num(int a=2)
    {
        return 12345 * a;
    }
private:

};



#include <cctype>
class test04{
public:
    test04(string str="")
        :_str(str),_upper_num(0),_lower_num(0){};
    
    void Cnt_Upper_and_Lower()
    {
        for(auto c:_str)
        {
            if(isupper(c))
                _upper_num++;
            else if(islower(c))
                _lower_num++;
        }
    }
    
    int get_upperNum(){
        return _upper_num;
    } 
    
    int get_lowerNum(){
        return _lower_num;
    }
private:
    string _str;
    int _upper_num;
    int _lower_num;
};


#include <limits>
class test05 
{
public:
   test05(string str="")
       :_str(str),_newsentence(""),_v(){};

   void Turn_Sentence()
   {
       if(!_str.empty() && _str[0] == ' ')
           _v.push_back(0);
       int cur = 0;
       while(cur < _str.size())
       {
           cur = _str.find_first_not_of(' ',cur);
           if(cur == -1) break;       //每次查找完都进行是否找完了的判断
           _v.push_back(cur);
           cur = _str.find_first_of(' ',cur);
           if(cur == -1) break;
       }

       //for(auto& e : _v)
       //  cout << e << ' ';
       //cout << endl;
       
       for(auto& e : _v)
           _str[e] -= 32;
       
       _newsentence = _str;
   }

   string get_newsentence()
   {
       return _newsentence;
   }

private:
    string _str;
    string _newsentence;
    vector<int> _v;
};











